Skip to content

feat(visual): base/head render harness reusing ui:preview - #759

Closed
Helios531 wants to merge 2 commits into
JSONbored:mainfrom
Helios531:feat/base-head-render-harness
Closed

feat(visual): base/head render harness reusing ui:preview#759
Helios531 wants to merge 2 commits into
JSONbored:mainfrom
Helios531:feat/base-head-render-harness

Conversation

@Helios531

Copy link
Copy Markdown
Contributor

Summary

Related Issue

Closes: #580

Change Type (select all that apply)

  • ✨ New feature (non-breaking)
  • 🧪 Tests
  • 🔧 Tooling / build / scripts
  • 🐛 Bug fix
  • ♻️ Refactor
  • 💥 Breaking change

Real behavior proof

The actual e2e log: both servers ready at HTTP 200, BASE_URL/HEAD_URL printed, probe hitting /, /roadmap, /changelog → 200 on both, exit 0, clean teardown. Plus the two issues found-and-fixed (.output vs dist path, process-group teardown).

Validation checklist

Honestly marked:
✅ git diff --check, typecheck, test:coverage (≥97%, new file 100%), ui:build (via real run).
⬜ others marked not run with a one-line reason each (tooling-only PR, unrelated subsystems — confirm in CI).

@ghost

ghost commented Jun 16, 2026

Copy link
Copy Markdown

gittensory · advisory review

Reviewed 7 changed file(s) — two independent AI reviewers.

Changed files: package.json, src/env.d.ts, src/queue/processors.ts, src/services/metagraphed.ts, src/signals/subnet-claim.ts, test/unit/metagraphed.test.ts, test/unit/subnet-claim.test.ts

Suggested action: 🛠️ Request changes. (reviewers split: request changes / merge) Address the suggestions below before merging.

Reviewer A · gpt-oss-120b — recommends 🛠️ request changes
The PR introduces subnet/netuid claim detection and validation against the metagraphed service, integrates the new advisory findings into PR and issue processing, adds related environment configuration, scripts, and comprehensive tests.

Suggestions

  • Add SSRF/host validation for the METAGRAPHED_API_URL (similar to existing external fetch guards) to prevent potential internal network access.
  • Update any central Env type or wrangler configuration to include the new METAGRAPHED_API_URL if required for type‑checking.
  • Consider adding a test that ensures assessSubnetClaimFindings does not perform a fetch when the URL fails the SSRF guard.

Worth double-checking

  • Without SSRF protection, an admin could inadvertently set METAGRAPHED_API_URL to an internal address, leading to request forgery.
  • If the new env var is not declared in the worker’s environment schema, deployment may fail.

Reviewer B · mistral-small-3.1-24b-instruct — recommends ✅ merge
This PR adds a new feature to validate subnet/netuid claims in PRs and issues against metagraphed, integrating it into the existing webhook processing pipeline. The implementation is thorough, with comprehensive tests and clear documentation. The changes are well-structured and follow the project's conventions.

Suggestions

  • Consider adding a comment in the package.json to explain the purpose of the new visual:render script.
  • Ensure that the METAGRAPHED_API_URL environment variable is documented in the relevant configuration files or README.
  • Add a note in the CONTRIBUTING.md about the new visual:render script and its usage.

Worth double-checking

  • Verify that the METAGRAPHED_API_URL environment variable is properly validated and sanitized to prevent injection attacks.
  • Ensure that the new feature does not introduce any performance bottlenecks, especially with the network calls to metagraphed.
  • Check that the new tests cover all edge cases, including scenarios where the metagraphed API is unavailable or returns unexpected responses.

@JSONbored JSONbored added the gittensor:feature Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier. label Jun 16, 2026
@ghost

ghost commented Jun 16, 2026

Copy link
Copy Markdown

Note

Gittensory Gate skipped

PR closed before full evaluation. No late first comment was created.

Signal Result Evidence Action
Gate result ⚠️ Skipped #759 is no longer open. No action.

💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →.

Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.

@ghost ghost added the gittensory:reviewed label Jun 16, 2026
@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.61%. Comparing base (c6d0cad) to head (1c5300b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #759      +/-   ##
==========================================
+ Coverage   96.59%   96.61%   +0.01%     
==========================================
  Files          91       93       +2     
  Lines       13646    13695      +49     
  Branches     4975     4993      +18     
==========================================
+ Hits        13182    13231      +49     
  Misses         97       97              
  Partials      367      367              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread package.json Outdated
@superagent-security superagent-security Bot added the pr:flagged PR flagged for review by security analysis. label Jun 16, 2026
@Helios531
Helios531 force-pushed the feat/base-head-render-harness branch from d0e2bae to 1c5300b Compare June 17, 2026 05:31
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@superagent-security superagent-security Bot removed the pr:flagged PR flagged for review by security analysis. label Jun 17, 2026

@JSONbored JSONbored left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR #759 — feat(visual): base/head render harness reusing ui:preview
Verdict: Close
Resolves issue #580: NO
CI: Checks are green but they validate the WRONG code — green CI is misleading here.

Highlights:

  • None applicable — the branch does not contain the described render-harness implementation.

Concerns / required changes:

  • WRONG BRANCH CONTENT: the head commit (136ad23 "fix: gittensory-consume-metagraphed") adds src/services/metagraphed.ts + src/signals/subnet-claim.ts — i.e. this is PR #762's metagraphed work, duplicated. The only other commit is an unrelated main-merge.
  • The files the PR body promises (src/visual/render-harness.ts, scripts/visual-render.ts) do NOT exist on the branch — confirmed via get_files, get_diff, and per-commit file lists.
  • package.json adds a visual:render script pointing at scripts/visual-render.ts that isn't present, so visual:render would fail.
  • Implements none of #580 (no two-ref ephemeral wrangler serve, no health-wait, no BASE_URL/HEAD_URL parameterization), and re-lands the #697 feature already covered by #762.

Completeness vs issue: Does not satisfy #580 at all. The branch was pushed/rebased onto the wrong work and must be rebuilt with the intended render-harness commits before it can be reviewed on its merits.

@JSONbored JSONbored closed this Jun 17, 2026
@github-project-automation github-project-automation Bot moved this from Todo to Done in gittensory - v1 roadmap Jun 17, 2026
@Helios531

Copy link
Copy Markdown
Contributor Author

@JSONbored I have mixed with other issue. I would like to contribute here, Could you reopen this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:feature Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

owner-led(visual-agent): base/head render harness (reuse ui:preview)

2 participants